<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="file:///android_asset/lemon/css/constants.css" />
<link rel="stylesheet" type="text/css" href="file:///android_asset/lemon/css/lookaround.css" />
<script type="text/javascript" src="file:///android_asset/lemon/js/jquery.min.js" />
<script type="text/javascript" src="file:///android_asset/lemon/js/constants.js" />
<script type="text/javascript" src="file:///android_asset/lemon/js/lookaround.js" />

</head>

<body>
<div id='head'>
		<p id='title' align='center' >最新头像</p>
</div>
<script type="text/javascript">
//document.write("<hr width=100% size=1 color=#9d9d9d style='FILTER: alpha(opacity=80,finishopacity=30,style=1)'>");
document.write("<div class='div_contact' style='margin-top:10%'>");
var server_address = window.lemon.js2client(4,null);
var data = window.lemon.httpGet(server_address+"/tom/servlet/C2S2returnFriends?all=");
var str1 = new String(data);
var str2 = str1.slice(9,str1.length);
var str3 = str2.substring(0,str2.indexOf("}"));
friends_index = str3.split(",");

var i = "";
var j = "";
for(i =  friends_index.length-1 ,j = 0; i >=0;j++, i--){
	if( j >  11){
	    	break;	
    }
	var img_path= "<img alt='"+friends_index[i]+"' src='"+server_address+"/tom/res/img/"+friends_index[i]+".jpg' width='80' height='120' id='"+friends_index[i]+"' />";
	document.write(img_path);
}
document.write("<p id='last'></p>");
$(document).ready(function(){
	$(window).scroll(function() {
	    if(document.body.scrollTop + document.body.clientHeight > document.body.scrollHeight / 20 ){
		if(j == friends_index.length ){
			return;
		}
		for(i = friends_index.length -1-   j ; i >= 0;i--){
			if( friends_index.length -1-  i <  j * 2){
				var img_path= "<img alt='"+friends_index[i]+"' src='"+server_address+"/tom/res/img/"+friends_index[i]+".jpg' width='80' height='120' id='"+friends_index[i]+"' />";
				$("p#last").append(img_path);
			}else{
				break;
			}
		}
		j = friends_index.length  - 1-i;
		$(document).ready(function(){
					$("div.div_contact img").click(function(){
						window.lemon.js2client(2,"friends_detail.html?_id="+this.id+"&user_id="+user_id);
				});
		});
		}
	});
});
document.write("</div>");




</script>
</body>

</html>